package com.wu.framework.yearning.plus.starter.yearning.api;

import lombok.Data;
import lombok.Getter;

/**
 * 登录返回结果
 * { "payload": { "is_record": 0, "real_name": "吴佳伟", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDE0NzI5NDYsImlzX3JlY29yZCI6ZmFsc2UsIm5hbWUiOiLlkLTkvbPkvJ8iLCJyZWFsX25hbWUiOiLlkLTkvbPkvJ8ifQ.gzayCH4dYpooyxYlPNP3OU-2dm-1EO2WGGsRrIvEj70", "user": "吴佳伟" }, "code": 1200, "text": "" }
 */
@Data
public class LoginDTO {

    private Payload payload;

    private int code;

    private String text;

    @Getter
    @Data
    public static final class Payload {
        private int is_record;

        private String real_name;

        private String token;

        private String user;

        public void setIs_record(int is_record) {
            this.is_record = is_record;
        }

        public void setReal_name(String real_name) {
            this.real_name = real_name;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public void setUser(String user) {
            this.user = user;
        }
    }


}
